package TestDemo;

import java.util.ArrayList;

public class A<T> {
    T value;
    public A(T value) {
      this.value = value;
    }
    T get() {
      return value;
    }

    @Override
    public String toString() {
        return "A{" +
                "value=" + value +
                '}';
    }
}

class Main{
  public static void main(String[] args) {
      A<Integer> a = new A<>(10);
      Integer a1 = a.get();
      System.out.println(a);
      A<String> b = new A<>("hello world");
      String b1 = b.get();
      System.out.println(b);
      ArrayList
  }

}